package com.zjxf.repository;

import com.zjxf.base.bean.po.UmsUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * created with IntelliJ IDEA
 *
 * @author: create by limu
 * Date: 2019/11/12
 * Time：10:47
 */
@Repository
public interface UmsUserRepository extends JpaRepository<UmsUser, Long>, JpaSpecificationExecutor<UmsUser> {

    Optional<UmsUser> findByUsernameAndDeleteState(String userName, Integer deleteState);

    Optional<UmsUser> findByIdAndDeleteState(Long id, Integer deleteState);
}
